using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace jtgApp
{
    public class SharedConfig
    {
        public void SetConfig(string xmlname,string key, string values, Activity Ai)
        {
            ISharedPreferences shared = Ai.GetSharedPreferences(xmlname, FileCreationMode.Private);
            ISharedPreferencesEditor editor = shared.Edit();
            editor.PutString(key, values);
            editor.Commit();
        }
        public string GetConfig(string name, string key, Activity Ai)
        {
            ISharedPreferences shared = Ai.GetSharedPreferences(name, FileCreationMode.Private);
            return shared.GetString(key, "");
        }
    }
}